package com.william.jdbcplus.boot.test.util;

import com.william.jdbcplus.boot.test.constant.GlobalConst;
import com.william.jdbcplus.core.dialects.ddl.DDLUtil;

import javax.sql.DataSource;

public class DropTablesUtil {
    public static void main(String[] args) {
        DataSource mysqlDatasource = DsUtil.getMysql();
        DDLUtil.dropDatabaseTables(GlobalConst.skanPackage, mysqlDatasource);
        DataSource oracleDatasource = DsUtil.getOracle();
        DDLUtil.dropDatabaseTables(GlobalConst.skanPackage, oracleDatasource);
        DataSource sqlserverDatasource = DsUtil.getSqlServer();
        DDLUtil.dropDatabaseTables(GlobalConst.skanPackage, sqlserverDatasource);
    }
}
